package com.ninegear;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.widget.RelativeLayout;

public class MainActivity extends AppCompatActivity {
    RelativeLayout rel;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        rel = (RelativeLayout) findViewById(R.id.rel);
        final RelativeLayout.LayoutParams layoutParams = new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.MATCH_PARENT, RelativeLayout.LayoutParams.MATCH_PARENT);
        GearLinkView gearView = new GearLinkView(MainActivity.this);
        gearView.setLayoutParams(layoutParams);
        rel.addView(gearView);
//        GearView gearView = new GearView(MainActivity.this);
//        gearView.setLayoutParams(layoutParams);
//        rel.addView(gearView);
    }
}
